#ifndef QTLRCWIDGET_H
#define QTLRCWIDGET_H

#include <QWidget>
#include <QMap>
#include <QTimer>

class QtLrcWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QtLrcWidget(QWidget *parent = nullptr);

    void loadLrcFile(const QString &fileName);
    void postionChanged(qint64 position);

signals:

private:
    QString     m_strLrcText;
    QMap<qint64, QString> m_mapLrc;
    qreal       m_currPos;
    QTimer      *m_timer;

protected:
    void paintEvent(QPaintEvent *) override;
};

#endif // QTLRCWIDGET_H
